﻿using WeDonekRpc.Helper;

namespace Basic.HrGatewayModular.Interface
{
    public interface ILoginVerService
    {
        /// <summary>
        /// 获取验证状态 
        /// </summary>
        /// <param name="loginName">登陆名</param>
        /// <returns>返回true 验证通过  false  需验证码</returns>
        bool CheckVerState ( string loginName );

        /// <summary>
        /// 检查是否验证
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        bool CheckIsVer ( ErrorException e );

        bool CheckIsVerCode ( string loginName );
        /// <summary>
        /// 登陆失败处理
        /// </summary>
        /// <param name="loginName"></param>
        /// <param name="e"></param>
        bool LoginFail ( string loginName );
        void Clear ( string loginName );
    }
}